package is.olsenolsen;

public class Card {
	/*
	 * Card klasinn inniheldur oll eigindi gefins spils.
	 * 
	 * Mynd spils er haegt ad nalgast ut fra imageName med eftirfarandi koda:
	 * 
	 * int imageID = this.getResources().getIdentifier(
	 * 		spil.imageName, "drawable", "is.olsenolsen");
	 * 
	 * imgView.setImageResource(imageID);
	 *
	 */
	
	final int value;
	final char suit;
	final boolean royal;
	final String imageName;

	
	public Card (int value, char suit){
		this.value = value;
		this.suit = suit;
		
		if (this.value > 10){
			this.royal = true;
		}
		else{
			this.royal = false;
		}
		   
		this.imageName = this.suit + Integer.toString(this.value);
		
		

	}
}
